{% extends "common/layout_main.html" %}
{% block content %}
    <div class="row  border-bottom">
        <div class="col-lg-12">
            <div class="tab_title">
                <ul class="nav nav-pills">
                    <li class="current">
                        <a href="{{ buildUrl('/account/index') }}">账户列表</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="row m-t">
        <div class="col-lg-12">
            <div class="row">
                <div class="col-lg-12">
                    <div class="m-b-md">
                        <a class="btn btn-outline btn-primary pull-right" href="{{ buildUrl('/account/set') }}">
                            <i class="fa fa-pencil"></i>编辑
                        </a>
                        <h2>账户信息</h2>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-2 text-center">
                    <img class="img-circle circle-border" src="{{ buildStaticUrl('/images/common/avatar.png') }}"
                         width="100px" height="100px">
                </div>
                <div class="col-lg-10">
                    <p class="m-t">姓名：{{ info.nickname }}</p>
                    <p>手机：{{ info.mobile }}</p>
                    <p>邮箱：{{ info.email }}</p>
                </div>
            </div>
            <div class="row m-t">
                <div class="col-lg-12">
                    <div class="panel blank-panel">
                        <div class="panel-heading">
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active">
                                        <a href="javascript:void(0);" data-toggle="tab"
                                           aria-expanded="false">访问记录</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="panel-body">
                            <div class="tab-content">
                                <div class="tab-pane active">
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>访问时间</th>
                                            <th>访问Url</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {% if access_log_list %}
                                            {% for item in access_log_list %}
                                                <tr>
                                                    <td>{{ item.created_time }}</td>
                                                    <td>{{ item.target_url }}</td>
                                                </tr>
                                            {% endfor %}
                                        {% else %}
                                            <tr>
                                                <td colspan="2">暂无数据</td>
                                            </tr>
                                        {% endif %}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
